//
//  FeeDeductionViewController.m
//  fitnessmanage
//
//  Created by 众拳科技 on 2017/11/2.
//  Copyright © 2017年 zongquankeji. All rights reserved.
//  会员卡扣费

#import "FeeDeductionViewController.h"
#import "FeeDeductionView.h"
#import "SelectWorkViewController.h"

@interface FeeDeductionViewController ()

@end

@implementation FeeDeductionViewController

- (void)viewDidLoad {
    
    [super viewDidLoad];

    self.title = @"次卡扣费";
    
    [self createSubView];
}

-(void)createSubView{
    
    FeeDeductionView *feeDeductionView = [[FeeDeductionView alloc] initWithFrame:self.view.frame];
    
    [feeDeductionView.salBtnView.choseBtn addTarget:self action:@selector(choseSale)];
    
    feeDeductionView.feeDedClass = @"2001";
    
    [self.view addSubview:feeDeductionView];
    
    [feeDeductionView mas_remakeConstraints:^(MASConstraintMaker *make) {
       
        make.edges.mas_equalTo(self.view);
    }];
}

#pragma mark 选择销售
-(void)choseSale{
    
    SelectWorkViewController *selectWorkVC = [[SelectWorkViewController alloc] init];
    
    selectWorkVC.title = @"选择销售";
    
    [self.navigationController pushViewController:selectWorkVC animated:YES];
}
@end
